list1 = ['p', 'j', 'j', 'g']
del list1[0]
print(list1)

list2 = ['p', 'j', 'j', 'g', 'p']
list2.remove('p')
print(list2)



list3 = ['python', 'java', 'javascript', 'golang', 'python']
#不指定索引
item = list3.pop()
print(list3)
print(item)

#  指定索引
list3.pop(0)
print(list3)



list3.clear()
print(list3)